﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rmac
{
    public class ResultOption:Exception
    {
        public ResultOption(int code = 200,string msg="操作成功")
        {
            if(code != 200)
            {
                code = 403;
            }
            this.Code = code;
            this.Message = msg;
        }
        /// <summary>
        /// 状态码
        /// </summary>
        private int Code { set; get; }

        /// <summary>
        /// 消息
        /// </summary>
        private string Message { set; get; }
    }
}
